package com.question_barrier.service;


import com.question_barrier.entity.Barrier;

import java.util.List;

public interface BarrierService {
    /**
     *获取所有的关卡
     */
    List<Barrier> getAllBarrier();

    List<Barrier>  findByGradeAndSubject(String grade,String subject);

    Barrier  findByGradeAndSubjectAndDegree(String grade,String subject,long degree);

    boolean existsByGradeAndSubjectAndDegree(String grade,String subject,long degree);

    Barrier findById(Long Id);

    boolean  existsByGradeAndSubject(String grade, String subject);

    int addBarrier(Barrier barrier);


}
